<template>
    <header class="header">
      <slot></slot>
      <i class="iconfont icon-47" @click="Go" v-if="base"></i>
    </header>
</template>
<script>
    export default {
        data() {
            return {}
        },
        props:{
          base:{
            type:Boolean,
            default:false
          }
        },
        created() {
        },
        methods: {
          Go(){
            this.$router.go(-1);
          }
        },
        computed: {},
        components: {}
    }
</script>
<style scoped lang="scss">
  .header{
    position:fixed;
    width:100%;
    height:0.7rem;
    font-weight:600;
    text-align:center;
    line-height:0.7rem;
    background:#5bc0de;
    z-index:10;
    top:0;
    i{
      position:absolute;
      left:.1rem;
    }
  }
</style>
